/*
 * Copyright (C) 2010 Seapeak.Xu
 *
 * fostmq may be copied only under the terms of the GNU General
 * Public License V3, which may be found in the fostmq source kit.
 *
 * Created on: 2010-8-20
 * Author: Seapeak.Xu
 */

#ifndef FOSTMQ_SERVICE_H_
#define FOSTMQ_SERVICE_H_
#ifdef __cplusplus
extern "C"
{
#endif

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>


int service_init(const char *store_path, const size_t nonleaf_nodes,
		const size_t chuck_size, const size_t synctime);
void deal_request_header(void *arg);
void deal_request_body(void *arg);
int service_destroy(void);
void sync_queue();

#ifdef __cplusplus
}
#endif
#endif /* SERVICE_H_ */
